home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Tools / Languages / Caml Light 0.61 / Source / src / launch / camllight < prev    next >
Encoding:
Text File  |  1992-05-29  |  573 b   |  26 lines  |  [TEXT/MPS ]

  1. Set stdlib "LIBDIR"
  2. Set includes ""
  3. Set options ""
  4.  
  5. Loop
  6.   If "{1}" == ""
  7.     Break
  8.   Else If "{1}" == "-I" || "{1}" == "-include"
  9.     Set includes "{includes} -I {2}"
  10.     Shift
  11.   Else If "{1}" == "-O" || "{1}" == "-open"
  12.     Set options "{options} -O {2}"
  13.     Shift
  14.   Else If "{1}" == "-stdlib"
  15.     Set stdlib "{2}"
  16.     Shift
  17.   Else If "{1}" =~ /-≈/
  18.     Echo "Unknown option ∂"{1}∂", ignored" >Dev:StdErr
  19.   Else
  20.     Echo "I don't know what to do with file ∂"{1}∂", ignored" >Dev:StdErr
  21.   End
  22. End
  23.  
  24. camlrun "{stdlib}camltop" -stdlib "{stdlib}" {includes} {options}    
  25. Exit {Status}
  26.